Using the API as an Add-in Tool
When the API client is a DLL that is invoked by clicking Add-Ins from the Tools menu, the client runs within the environment of erwin DM. As a result, all the models that are currently open within erwin DM are populated in the PersistenceUnits property of the ISCApplication interface, when an instance of the interface is created.
To iterate through the models that are currently open in erwin DM, you can use the ISCApplication interface, ISCPersistenceUnitCollection interface, and the ISCPersistenceUnit interface, which are described in the sections that follow.
Copyright © 2025 Quest Software, Inc. |